'use strict';
const db = uniCloud.database();  
exports.main = async (event, context) => {
	console.log(event.artistId);
	if (!event.artistId) {
		return {data: []}
	}
	return db.collection('album_music_db').where({artistId: event.artistId}).get()
};
